<%@ page import="java.util.ArrayList" %>
<%@ page import="com.itheima.el.Student" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020年08月15日 0015
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    ArrayList<String> list = new ArrayList<>();
    list.add("张三");
    list.add("李四");
    pageContext.setAttribute("list", list);
%>
<c:forEach items="${list}" var="s">
    ${s}
</c:forEach>
</body>
</html>
